package com.iwhalecloud.bss.kite.cucc.service.job.batch;

import com.dangdang.ddframe.job.api.ShardingContext;
import com.dangdang.ddframe.job.api.simple.SimpleJob;
import com.iwhalecloud.bss.kite.common.constant.KeyConsts;
import com.iwhalecloud.bss.kite.cucc.client.api.batch.IBatchOrderNodeService;
import com.ztesoft.bss.common.util.SpringUtil;
import com.ztesoft.common.logger.api.ZLogger;
import com.ztesoft.common.logger.factory.ZLoggerFactory;

/**
 * @author lyx
 * @version V1.0
 * @Description:
 * @date 2021/12/27 0027
 */
public class BatchAcceptSignJob implements SimpleJob {

    private final ZLogger logger = ZLoggerFactory.getLogger(BatchAcceptSignJob.class, KeyConsts.LOG_MODULE);

    @Override
    public void execute(ShardingContext shardingContext) {
        logger.info("******************** 批量受理签订定时任务开始 ********************");
        long start = System.currentTimeMillis();
        SpringUtil.getBean(IBatchOrderNodeService.class).batchSignJob();
        long end = System.currentTimeMillis();
        logger.info("*************** 批量受理签订定时任务结束，耗时[" + (end - start) + "]ms ***************");
    }
}

